package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-01-16
 */
@TableName("sys_push")
public class Push extends Model<Push> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 所属商户
     */
    private Integer deptid;
    /**
     * 所属网点
     */
    @TableField("dot_id")
    private Integer dotId;
    /**
     * 剩余语音
     */
    @TableField("rest_voice")
    private Integer restVoice;
    /**
     * 剩余短信
     */
    @TableField("rest_message")
    private Integer restMessage;
    /**
     * 1、优先短信通知，短信失败则自动电话通知
2、优先电话通知，电话失败则自动短信通知
3、只用短信通知
4、只用电话通知
5、一并通知
     */
    @TableField("push_model")
    private String pushModel;
    /**
     * 未接通尝试
     */
    @TableField("call_num")
    private Integer callNum;
    /**
     * 尝试间隔 分钟
     */
    @TableField("call_interval")
    private Integer callInterval;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public Integer getDotId() {
        return dotId;
    }

    public void setDotId(Integer dotId) {
        this.dotId = dotId;
    }

    public Integer getRestVoice() {
        return restVoice;
    }

    public void setRestVoice(Integer restVoice) {
        this.restVoice = restVoice;
    }

    public Integer getRestMessage() {
        return restMessage;
    }

    public void setRestMessage(Integer restMessage) {
        this.restMessage = restMessage;
    }

    public String getPushModel() {
        return pushModel;
    }

    public void setPushModel(String pushModel) {
        this.pushModel = pushModel;
    }

    public Integer getCallNum() {
        return callNum;
    }

    public void setCallNum(Integer callNum) {
        this.callNum = callNum;
    }

    public Integer getCallInterval() {
        return callInterval;
    }

    public void setCallInterval(Integer callInterval) {
        this.callInterval = callInterval;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Push{" +
        "id=" + id +
        ", deptid=" + deptid +
        ", dotId=" + dotId +
        ", restVoice=" + restVoice +
        ", restMessage=" + restMessage +
        ", pushModel=" + pushModel +
        ", callNum=" + callNum +
        ", callInterval=" + callInterval +
        "}";
    }
}
